from pymongo import MongoClient

client = MongoClient()
#client = MongoClient('mongodb://developer:Password79@ds032319.mlab.com:32319/emptool')
client = MongoClient('ds032319.mlab.com', 32319)

#getting db
db = client.emptool
db = client['emptool']


#get collection
collection = db.test_collection
collection = db['test-collection']

posts = db.posts
post_id = posts.insert_one(post).inserted_id



